/**
 * 文件名：CheckListVo.java
 *
 * 创建人：Fyh - 1009173473@qq.com
 *
 * 创建时间：2020年7月9日 上午10:01:20
 *
 * 版权所有：南京植百汇智能科技服务有限公司
 */
package com.z100h.supplychain.evidence.entity;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeeplus.core.persistence.BaseEntity;
import com.z100h.supplychain.core.EvidenceType;

/**
 * [描述信息：说明类的基本功能]
 *
 * @author Fyh - 1009173473@qq.com
 * @version 1.0 Created on 2020年7月9日 上午10:01:20
 */
public class CheckListVo extends BaseEntity<CheckListVo> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String evidenceId;

	private String type;

	private String typeName;

	private String createDate;

	private String createOp;

	private String companyId;

	@JsonIgnore
	private String month;

	public CheckListVo() {
		super();
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

	public String getEvidenceId() {
		return evidenceId;
	}

	public void setEvidenceId(String evidenceId) {
		this.evidenceId = evidenceId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		if (StringUtils.isNotBlank(type)) {
			this.typeName = EvidenceType.get(type).getName();
		}
		this.type = type;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getCreateOp() {
		return createOp;
	}

	public void setCreateOp(String createOp) {
		this.createOp = createOp;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.jeeplus.core.persistence.BaseEntity#preInsert()
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年7月9日 上午10:54:50
	 */
	@Override
	public void preInsert() {
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.jeeplus.core.persistence.BaseEntity#preUpdate()
	 * @author: Fyh - 1009173473@qq.com 
	 * @date: Created on 2020年7月9日 上午10:54:50
	 */
	@Override
	public void preUpdate() {
	}

}
